package com.article.service;

import com.article.entity.ApiResult;
import com.article.entity.model.Article;
import com.article.entity.param.ArticleParam;

public interface ArticleService {
    /**
     * 添加文章
     * @param param
     * @return
     */
    ApiResult addArticle(Article param);

    /**
     * 删除文章,通过主键
     * @param param
     * @return
     */
    ApiResult deleteArticleById(Article param);

    /**
     * 更新文章,通过主键
     * @param param
     * @return
     */
    ApiResult updateArticleById(Article param);

    /**
     * 查询文章列表,多条件,分页
     * @param param
     * @return
     */
    ApiResult selectArticleList(ArticleParam param);
}
